<?php

namespace app\api\controller;

use app\common\controller\Send;

class Loginout extends Base
{
    
    
    use Send;
    /**
     * 退出登录
     * @return array
     * @throws \think\Exception\DbException
     */
    public function index()
    {
        $token = input('token');
        cache($token, '');     
        return self::sendResult(0, [], '退出成功！');
    }
    
    
}